﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
using STX.Web.Framework.Controllers;
namespace STX.Admin.Controllers
{

    public abstract class AuthController : BaseController
    {
        protected override void Initialize(RequestContext requestContext)
        {
            if (AdminContext.CurrentUser == null)
            {
                requestContext.HttpContext.Response.Redirect("login");
                throw new Exception("当前用户已超时");
            }
            ViewBag.CurUser = AdminContext.CurrentUser;
            base.Initialize(requestContext);
        }

        
    }
}
